#define _CRT_SECURE_NO_WARNINGS

#include <iostream>
#include<string>
using namespace std;

int main()
{
    string s;
    cin >> s;

    string t;
    for (auto ch : s)
    {
        if (ch >= '0' && ch <= '9') t += ch;
    }
    int m = t.size();

    long long sum = 0;
    int k = 1;
    for (int i = 0; i < m - 1; i++)
    {
        sum += k * (t[i] - '0');
        k++;
    }

    int p = sum % 11;

    if (p == (t[m-1] - '0')) cout << "Right" << '\n';
    else
    {
        char a = p + '0';
        s.pop_back();
        s += a;
        cout << s << '\n';
    }

    return 0;
}

class Solution
{
public:
    int partitionArray(vector<int>& nums, int k)
    {
        sort(nums.begin(), nums.end());
        int n = nums.size();

        int count = 0;
        int l = 0, r = 0;
        while (r < n)
        {
            while (nums[r] - nums[l] > k)
            {
                l = r;
                count++;
            }
            r++;
        }

        return count + 1;
    }
};